from rest_framework import serializers
from goods.models import SKUImage


class ImageSeriazlier(serializers.ModelSerializer):
    # sku=serializers.PrimaryKeyRelatedField(read_only=True)  ##?? read_only 保存？  关系属性默认输出id，所以此条可以不用写
    class Meta:
        model = SKUImage
        fields = '__all__'
